from pathlib import Path

file = Path("D:\dev\PythonProject\python_learning\chapter10.1\pi_digits.txt")
# file = Path("pi_digits.txt")
contents = file.read_text()
print(contents)

lines = contents.splitlines()
pi_string = ''
for line in lines:
    print(line)
    pi_string += line.lstrip()

print(pi_string)
print(len(pi_string))
